﻿using AutoMapper;
using Windows.WorkFlow.Domain;

namespace Windows.WorkFlow.Service
{
    public class DtoToDomainMappingProfile : Profile
    {
        /// <summary>
        /// 配置构造函数，用来创建关系映射
        /// </summary>
        public DtoToDomainMappingProfile()
        {
            CreateMap<FormSaveRequest, Form>();
            CreateMap<FlowCategorySaveRequest, FlowCategory>();
            CreateMap<FlowSaveRequest, Flow>();
            CreateMap<FlowInstanceSaveRequest, FlowInstance>();
        }
    }
}
